package com.dingup.homework.feign.client.mock;


import com.dingup.api.model.mock.home.SubjectNameDataMapInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;
import java.util.Map;

/**
 * Created by wancheng on 2018/7/5.
 */
@Component
@FeignClient(value = "p-mock") //这里的name对应调用服务的spring.applicatoin.name
public interface MockFeignClient {

    @RequestMapping(value = "/feign/mock/get_subject_name.do", method = RequestMethod.POST)
    public Map<String, List<SubjectNameDataMapInfo>> getSubjectName(@RequestParam("type") String type);


}
